package com.real.fact.web.customer.application;

import java.util.Date;

/**
 * DTO useful to show the account summary items for a given customer.
 * It contains a reference to a sale, the date, the amount payed, the total
 * and the debt.
 *
 */
public class AccountSummaryDTO {

  private long saleId;

  private Date saleDate;

  private float saleTotal;

  private float salePayed;

  private float saleDebt;

  /**
   * @param saleId
   * @param saleDate
   * @param saleTotal
   * @param salePayed
   * @param saleDebt
   */
  public AccountSummaryDTO(long saleId, Date saleDate, float saleTotal,
      float salePayed, float saleDebt) {
    this.saleId = saleId;
    this.saleDate = saleDate;
    this.saleTotal = saleTotal;
    this.salePayed = salePayed;
    this.saleDebt = saleDebt;
  }

  public long getSaleId() {
    return saleId;
  }

  public float getAmount() {
    return saleDebt;
  }

  public Date getSaleDate() {
    return saleDate;
  }

  public float getSaleTotal() {
    return saleTotal;
  }

  public float getSalePayed() {
    return salePayed;
  }

  public float getSaleDebt() {
    return saleDebt;
  }

}
